﻿using System.Configuration;

namespace MahaBaseWrapper.Core
{
    public class WrapperConfiguration : ConfigurationSection
    {
        [ConfigurationProperty("connectionString", IsRequired = true)]
        public string ConnectionString
        {
            get
            {
                return this["connectionString"] as string;
            }
        }

        public static WrapperConfiguration Get()
        {
            return ConfigurationManager.GetSection("wrapperCFG") as WrapperConfiguration;
        }
    }
}
